﻿using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using tieba_gzh.DAL;
using tieba_gzh.Models;

namespace tieba_gzh.Controllers
{
    public class tieziController : Controller
    {
        private DAL_tiezi daltiezi = new DAL_tiezi();
        public IActionResult gettiezi()
        {
            return View(daltiezi.gettiezi());
        }
        [HttpPost]
        //创建一个方法。返回一个列表视图
        public IActionResult gettiezi(string xsn)
        {
            return View(daltiezi.gettiezi(xsn));
        }
    }
}
